import { Button, Input } from 'antd';
import Editor from 'components/Editor';
import React, { useState } from 'react';
import Copy from './copy';
export default () => {
    const [text, setText] = useState('test')
    return (
        <section>
            <Input value={text} onChange={e => setText(e.target.value)} style={{ width: 200 }} />
            <Copy text={text} delay={2000}>
                <Button>复制</Button>
            </Copy>
            <Editor className="mt20" value={require('./index.md').default} />
        </section>
    )
}